# _*_ coding: UTF-8 _*_
# @Time     : 2021/2/23 下午 02:07
# @Author   : Li Jie
# @Site     : http://www.hzdledu.com/
# @File     : process_test1.py
# @Software : PyCharm

# 导入Process类
from multiprocessing import Process


def test():
    print('我是子进程')


def main():
    print('主进程开始')
    p = Process(target=test, args=(1,))  # 实例化Process类进程对象
    p.start()  # 启动子进程
    print('主进程结束')


if __name__ == '__main__':
    main()
